<?php

namespace App\Console;

use App\Console\Commands\account\ExpCmd;
use App\Console\Commands\model\CheckTagCmd;
use App\Console\Commands\model\CheckTrainCmd;
use App\Console\Commands\model\CheckVideoCmd;
use App\Console\Commands\model\DoTagCmd;
use App\Console\Commands\model\DoTrainCmd;
use App\Console\Commands\model\TextToImageCmd;
use App\Console\Commands\model\TitleCmd;
use App\Console\Commands\model\VideoCmd;
use App\Console\Commands\ReleaseCmd;
use App\Console\Commands\SyncCmd;
use App\Console\Commands\TestCmd;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Console\Commands\SyncStatusCmd;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        TestCmd::class,
        ReleaseCmd::class,
        SyncCmd::class,
        ExpCmd::class,
        SyncStatusCmd::class,
        DoTagCmd::class,
        CheckTagCmd::class,
        DoTrainCmd::class,
        CheckTrainCmd::class,
        TextToImageCmd::class,
        TitleCmd::class,
        VideoCmd::class,
        CheckVideoCmd::class
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();

        //打标签
//        $schedule->command('model:do-tag')->everyMinute()->withoutOverlapping();



    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}
